The federal government's controversial legislation to ban Australia's live sheep by sea export trade passed the Senate.